package com.beverages.holder.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.beverages.holder.entity.Holder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HolderMapper extends BaseMapper<Holder> {
    // 查询 order_id = 0 且 prepared_order_id = 0 的记录
//    @Select("SELECT id, order_id, prepared_order_id FROM holder WHERE order_id = 0 AND prepared_order_id = 0")
//    List<Holder> selectHolderWithZeroIds();
}
